<div class="ui raised very padded text segment">
    <div class="ui form">
        <div class="inline fields">
            <button class="ui button router-link" data-router="#deploy_terminalAdd">添加</button>
        </div>
    </div>
</div>
<div class="ui table-wrap">
    <table class="ui celled table">
        <thead>
            <tr><th class="collapsing">类型</th>
            <th class="collapsing">品牌</th>
            <th class="collapsing">车型</th>
            <th class="collapsing">排量</th>
            <th class="collapsing">座位数</th>
            <th class="collapsing">状态</th>
            <th class="collapsing">操作</th>
        </tr></thead>
        <tbody>
            <% data.list.forEach(function(row){ %>
            <tr>
                <td data-name="type" data-value="<%=row.type%>"><%=row.type%></td>
                <td data-name="brand" data-value="<%=row.brand%>"><%=row.brand%></td>
                <td data-name="model" data-value="<%=row.model%>"><%=row.model%></td>
                <td data-name="outputVolume" data-value="<%=row.outputVolume%>"><%=row.outputVolume%></td>
                <td data-name="seatNum" data-value="<%=row.seatNum%>"><%=row.seatNum%></td>
                <td data-name="status" data-value="<%=row.status%>"><%if(row.status == 0){%>未上线<%}else{%>已上线<%}%></td>
                <td>
                    <a class="status" href="javascript:void(0);" data-status="<%=row.status%>" data-id="<%=row.id%>" data-key="id" data-url="/car/models/update"><%if(row.status == 0){%>发布<%}else{%>撤下<%}%></a>&nbsp;&nbsp;
                    <a class="edit" href="javascript:void(0);" data-id="<%=row.id%>" data-key="id"  data-url="/car/models/update">编辑</a>&nbsp;&nbsp;
                    <a class="delete" href="javascript:void(0);" data-id="<%=row.id%>" data-key="id"  data-url="/car/models/delete">删除</a>
                </td>
            </tr>
            <% }); %>
        </tbody>
    </table>
</div>
